/**
 * The file enables `@/store/index.js` to import all vuex modules
 * in a one-shot manner. There should not be any reason to edit this file.
 */

const routerContext = require.context('.', false, /\.js$/)
let routes = [
  {
    path: '/',
    redirect: '/uart'
  }
]

routerContext.keys().forEach(router => {
  if (router === './index.js') return
  const routerModule = routerContext(router);
  routes = [...routes,...(routerModule.default||routerModule)]
})

export default routes
